<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ question.question_text }} - 投票结果</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5faf5;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        
        h1 {
            color: #2e7d32;
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid #c8e6c9;
            font-size: 2em;
        }
        
        .result-list {
            list-style: none;
            padding: 0;
            margin-bottom: 40px;
        }
        
        .result-list li {
            background-color: #e8f5e9;
            margin-bottom: 15px;
            padding: 18px 25px;
            border-radius: 8px;
            border-left: 6px solid #81c784;
            font-size: 1.1em;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .vote-count {
            background-color: #a5d6a7;
            color: #1b5e20;
            padding: 5px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9em;
        }
        
        .action-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }
        
        .action-link {
            padding: 12px 25px;
            background-color: #a5d6a7;
            color: #1b5e20;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
            font-weight: 500;
            text-align: center;
            flex: 1;
            max-width: 200px;
        }
        
        .action-link:hover {
            background-color: #81c784;
            transform: translateY(-2px);
        }
        
        .action-link.return {
            background-color: #e8f5e9;
            border: 2px solid #a5d6a7;
        }
        
        .action-link.return:hover {
            background-color: #c8e6c9;
        }
    </style>
</head>
<body>
    <h1>{{ question.question_text }}</h1>
    
    <ul class="result-list">
    {% for choice in question.choice_set.all %}
        <li>
            <span>{{ choice.choice_text }}</span>
            <span class="vote-count">{{ choice.votes }} vote{{ choice.votes|pluralize }}</span>
        </li>
    {% endfor %}
    </ul>
    
    <div class="action-links">
        <a href="{% url 'polls:detail' question.id %}" class="action-link">重新投票</a>
        <a href="{% url 'polls:index' %}" class="action-link return">返回首页</a>
    </div>
</body>
</html>